﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="editProgress.aspx.vb" Inherits="WeightLossProject.editProgress" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2 class="custom-header">Edit Progress Update</h2>
    <asp:Label ID="Label1" runat="server" CssClass="formlabel" Text="Title"></asp:Label>
    <asp:TextBox ID="txtTitle" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvTxtTitle" runat="server" 
        ControlToValidate="txtTitle" Display="Dynamic" 
        ErrorMessage="Title Cannot be Blank!" CssClass="error"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="Label2" runat="server" CssClass="formlabel" Text="Description"></asp:Label>
    <asp:TextBox ID="txtDescription" runat="server" CssClass="frmDisplayEdit" 
        Height="147px" TextMode="MultiLine"></asp:TextBox>
    <br />
    <asp:RequiredFieldValidator ID="rfvTxtDescription" runat="server" 
        ControlToValidate="txtDescription" Display="Dynamic" 
        ErrorMessage="Description Cannot be Blank!" CssClass="error"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="rexVTtxtDescription" runat="server" 
        ControlToValidate="txtDescription" Display="Dynamic" 
        ErrorMessage="Description Should be Between 100 and 5000 Characters!" 
        ValidationExpression=".{100,5000}" Font-Bold="True" CssClass="error"></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="Label5" runat="server" CssClass="formlabel" Text="Picture"></asp:Label>
    <asp:Image ID="imgPicture" runat="server" CssClass="frmDisplayEdit" 
        Width="360px" />
    <br />
    <asp:Label ID="Label3" runat="server" CssClass="formlabel" Text="Picture"></asp:Label>
    <asp:FileUpload ID="fuPicture" runat="server" CssClass="frmDisplayEdit" />
    <br />
    <asp:Label ID="Label4" runat="server" CssClass="formlabel" Text="Weight"></asp:Label>
    <asp:TextBox ID="txtWeight" runat="server" CssClass="frmDisplayEdit"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvTxtWeight" runat="server" 
        ControlToValidate="txtWeight" Display="Dynamic" 
        ErrorMessage="Weight Cannot be Blank!" CssClass="error"></asp:RequiredFieldValidator>
    <asp:RangeValidator ID="rvTxtWeight" runat="server" 
        ControlToValidate="txtWeight" Display="Dynamic" 
        ErrorMessage="Weight Can only be between 1Kg and 1000Kgs." MaximumValue="1000" 
        MinimumValue="1" Type="Double" CssClass="error"></asp:RangeValidator>
    <br />
    <asp:Button ID="btnEditProgressUpdate" runat="server" 
        Text="Edit Progress Update!" />
</asp:Content>
